home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
rmqb01.zip
/
READDEF.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-11-06
|
720b
|
35 lines
' ReadDef.bas
'
' Purpose : Displays a DEF file
' Compiler: QuickBASIC 4.5
' Date : Nov 4, 1991
DEFINT A-Z
x = 120
y = 50
xoff = 0
yoff = 0
SCREEN 7 ' 320X200X16
OPEN "rm.def" FOR INPUT AS #1 ' Rm.def must be in the
WHILE NOT EOF(1) ' current directory.
c$ = INPUT$(1, #1)
IF (ASC(c$) > 64) AND (ASC(c$) < 71) THEN
col = ASC(c$) - 55
PSET (x + xoff, y + yoff), col
xoff = xoff + 1
ELSEIF (ASC(c$) > 47) AND (ASC(c$) < 58) THEN
col = ASC(c$) - 48
PSET (x + xoff, y + yoff), col
xoff = xoff + 1
ELSEIF c$ = CHR$(13) THEN
c$ = INPUT$(1, #1)
yoff = yoff + 1
xoff = 0
END IF
WEND
CLOSE #1